package com.dongan.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 设计程序模块表
 * </p>
 *
 * @author longTao
 * @since 2021-06-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("m_design_procedure_module")
public class DesignProcedureModule implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自增不自增
     */
      @TableId(value = "ID", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 父ID
     */
    @TableField("PARENT_ID")
    private Long parentId;

    /**
     * 细节的数量
     */
    @TableField("DETAILS_NUMBER")
    private BigDecimal detailsNumber;

    /**
     * 产品ID
     */
    @TableField("PRODUCT_ID")
    private String productId;

    /**
     * 产品名称
     */
    @TableField("PRODUCT_NAME")
    private String productName;

    /**
     * 类型
     */
    @TableField("TYPE")
    private String type;

    /**
     * 总数
     */
    @TableField("AMOUNT")
    private BigDecimal amount;

    /**
     * 产品描述
     */
    @TableField("PRODUCT_DESCRIBE")
    private String productDescribe;

    /**
     * 量单位
     */
    @TableField("AMOUNT_UNIT")
    private String amountUnit;

    /**
     * 成本价格
     */
    @TableField("COST_PRICE")
    private BigDecimal costPrice;

    /**
     * 部分和
     */
    @TableField("SUBTOTAL")
    private BigDecimal subtotal;

      @TableField(fill = FieldFill.INSERT)
      @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
      @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyy-MM-dd HH:mm:ss")
    private Date createTime;

      @TableField(fill = FieldFill.INSERT_UPDATE)
      @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
      @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 逻辑删除(0:true不删除,1:false删除)
     */
    @TableLogic
    private Integer deleted;


}
